﻿using System;
using System.Collections.Generic;
using System.Text;

using Obsidian.Edm;
using Oak.Model;

namespace Oak.Model
{
    public class CoActPermissionInfo : OModel
    {

        private LongField itemId;
        private LongField appKeyId;
        private LongField actionId;
        private DateTimeField created;
        private EntityField<CoActionInfo> action;

        public CoActPermissionInfo()
        {
            base.InitModel("oak", "CoActPermissions", new IModelField[]{
                itemId = new LongField(this, "ItemId", "itemId"),
                appKeyId = new LongField(this, "AppKeyId", "appKeyId"),
                actionId = new LongField(this, "ActionId", "actId"),
                created = new DateTimeField(this, "Created", "created"),
                action = new EntityField<CoActionInfo>(this, "action")
            });
        }

        public LongField ItemId { get { return itemId; } }
        public LongField AppKeyId { get { return appKeyId; } }
        public LongField ActionId { get { return actionId; } }
        public DateTimeField Created { get { return created; } }
        public EntityField<CoActionInfo> Action { get { return action; } }

    }
}
